//test token
const myfbId ='10209463034331166';
var _token = 'EAADC8HawZC7MBAJIMlfSJvDhzEUsBmnpZA2zvPGAHKZCTC7wk1Ae6vLyrmhf6UhcZCdruFgXCnNZCSYZCXnFXjHkhmEyBFMfg6LZB2TUKm6jfdfCdNffrdZAhuYThGOiCksGhcCUWDqZC9IqoQPl1mQVNtgxHrf3ycMDhvvyZCNbGzQFXyfzNd6s6fvU9Aeiz0my4ZD'
const myfb = require('./facebookModule')
if (true) {
    console.log(Date.now());
//    asynCall();
    function getfb() {
        return new Promise(resolve => {
            myfb.getFBId(_token, function (data) {
                resolve(data);
            });
        })
    }
    async function asynCall() {
        console.log('calling');
        var fbid = await getfb();
        console.log(fbid);

        var t1 = myfb.getFBProfile(fbid, _token, function (data) {
            console.log('fb profile:::' + JSON.stringify(data))
        })
    }
}


